package lab02.Test06;

/**
 * Created by 14394 on 2017/10/16.
 */
public class Ladder {
    private double upLine;
    private double dounLine;
    private double height;

    public Ladder(double upLine, double dounLine, double height) {
        this.upLine = upLine;
        this.dounLine = dounLine;
        this.height = height;
    }

    public Ladder() {

    }

    public double getUpLine() {
        return upLine;
    }

    public void setUpLine(double upLine) {
        this.upLine = upLine;
    }

    public double getDounLine() {
        return dounLine;
    }

    public void setDounLine(double dounLine) {
        this.dounLine = dounLine;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getArea(){
        return  ((upLine+dounLine)*height/2);
    }
}
